package com.java65;

public class practice4 {
    public static void main(String[] args) {
        int num,ge,shi,bai;
        for(num=100;num<1000;num++){
                ge=num%10;
                shi=(num/10)%10;
                bai=(num/100)%10;
         if(num==ge*ge*ge+shi*shi*shi+bai*bai*bai){
               System.out.print("水仙花数字:"+num);
         }
        }
    }
}
